<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name:  Subjects Model
*
* Author:  Ervin R. Musngi
*
*/

class Subjects_m extends DataMapperExt
{
	var $table = 'Subjects';
	
	var $has_one = array(
			'category'	=> array(
				'class'			=> 'category_m',
				'other_field'	=> 'subjects',
				'join_other_as' => 'category',
				'join_table'	=> 'subjects'
			),
			'school_level'		=> array(
				'class'			=> 'school_level_m',
				'other_field'	=> 'subjects',
				'join_other_as'	=> 'school_level',
				'join_table'	=> 'subjects'
			)
	);
	
}